<nav class="navbar navbar-expand-md navbar-light navbar-laravel">
    <div class="container">
        <a class="navbar-brand" href="{% url 'home' %}">REBS</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <!-- Left Side Of Navbar -->
            <ul class="navbar-nav mr-auto">

            </ul>

            <!-- Right Side Of Navbar -->
            <ul class="navbar-nav ml-auto">
                <!-- Authentication Links -->
                {% if user.is_active %}
                    {% if user.is_staff %}
                        <li class="nav-item">
                            <a href="{% url 'rebs:dashboard' %}" class="nav-link">REBS dashboard</a>
                        </li>
<!--                        <li class="nav-item">-->
<!--                            <a href="#" class="nav-link">CRAFT dashboard</a>-->
<!--                        </li>-->
                        <li class="nav-item">
                            <a href="{% url 'books:index' %}" class="nav-link">Books</a>
                        </li>
                    {% endif %}
                    <li class="nav-item dropdown">
                        <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button"
                           data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
                            {% firstof user.get_short_name user.get_username %}
                            <span class="caret"></span>
                        </a>

                        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                            <a href="{% url 'logout' %}" class="dropdown-item">Logout</a>
                            <a href="{% url 'password_change' %}" class="dropdown-item">Password Change</a>
                        </div>
                    </li>

                {% else %}
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'login' %}">Login</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'register' %}">Register</a>
                    </li>

                {% endif %}
            </ul>
        </div>
    </div>
</nav>
